<template>
  <div>
    <transition :name="transitionName">
      <router-view id="t_demand_board"></router-view>
    </transition>
  </div>
</template>

<script>
import getTransitionName from '@/modules/transition'

export default {
  data() {
    return {
      transitionName: 'silde-right' 
    }
  },
  watch:{
    $route(to, from) {
      this.transitionName = getTransitionName.call(this, to, from)
    }
  }
}
</script>

<style lang="scss">
#t_demand_board {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
</style>